package com.yy.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @ClassName: ApiConfig
 * @author: 姚欣宏
 * @date: 2023.10.20
 */

@Configuration
@ConfigurationProperties(prefix = "api")
@Data
public class ApiConfig {

    private Map<String, String> headers;
    private List<Endpoint> endpoints;

    @Data
    public static class Endpoint {
        private String name;
        private String url;
    }
}


